import request from '@/utils/request'

// 查询用户个人信息
export function getEarnData(data) {
  return request({
    url: '/system/technician/earnings/collect/technicianEarnings',
    method: 'get',
    params:data
  })
}

// 查询用户个人信息
export function getCardEarnData(data) {
  return request({
    url: '/system/order/item/earnings/zyTechnician',
    method: 'get',
    params:data
  })
}

// 充值收益
export function getRechargeData(data) {
  return request({
    url: '/system/technician/earnings/technicianEarnings/value',
    method: 'get',
    params:data
  })
}
// 会员收益
export function getMemberData(data) {
  return request({
    url: '/system/technician/earnings/technicianEarnings/member',
    method: 'get',
    params:data
  })
}

// 我的评价
export function getComment() {
  return request({
    url: '/system/technician/evaluate/getTechnicianEvaluate',
    method: 'get',
  })
}

// 管理端统计
export function getMaster(data) {
  return request({
    url: '/system/technician/earnings/technicianEarnings/order',
    method: 'get',
    params:data
  })
}

// 管理端统计
export function getMasterDetail(data) {
  return request({
    url: '/system/technician/earnings/collect/technicianEarningsId',
    method: 'get',
    params:data
  })
}

// 所有技师
export function getAllMaster() {
  return request({
    url: '/system/technician/list',
    method: 'get',
  })
}